import * as components from "./components/index_pc";
import Vue from "./vue.js";
Object.keys(components).forEach((key) => {
  console.log(`注册${components[key].name}`);
  Vue.component(components[key].name, components[key]);
});

export default {
  components: [
    {
      __config__: {
        label: "我的组件",
        tag: "pm-test",
        tagIcon: "pm-test",
        defaultValue: { value: null, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
        viewId: null,
        viewCode: "view",
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
        test: "",
      },
      icon: "",
      //自定义数据源需要配置datasource
      datasource: {
        type: "entity",
        options: null,
        test: "",
      },
    },
    {
      __config__: {
        label: "步骤条",
        tag: "pm-steps",
        tagIcon: "pm-steps",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      datasource: {
        type: "dict",
        options: null,
        test: "",
      },
      extConfig: {
        // 所有扩展属性都写在这里
        direction: "",
        isAlignCenter: false,
        isSimple: false,
        stepsdata: [],
        active:0,
        finishStatus: "finish",
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "可选列表",
        tag: "pm-checklist",
        tagIcon: "pm-checklist",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      datasource: {
        type: "dict",
        options: null,
        test: "",
      },
      extConfig: {
        // 所有扩展属性都写在这里
        isAlignCenter: false,
        labelName: "",
        checkListColor: "",
        checkListSize: "",
        isTitleCenter: false,
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "手机",
        tag: "pm-phone",
        tagIcon: "pm-phone",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "滑块",
        tag: "pm-slider",
        tagIcon: "pm-slider",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
        range: false,
        vertical: false,
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "轮播图",
        tag: "pm-swipe",
        tagIcon: "pm-swipe",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      datasource: {
        type: "dict",
        options: null,
        test: "",
      },
      extConfig: {
        // 所有扩展属性都写在这里
        vertical: false,
        verticalHeight: "",
        swipeNo: "",
        swipeAlign: "",
        swipeStr:"",
        swipeMarginTop:"",
        swipeMarginBottom:"",
        swipeMarginLeft:"",
        swipeMarginRight:""

      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "卡片",
        tag: "pm-card",
        tagIcon: "pm-card",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
        cardUrl: "",
        cardtitle: "",
        carddesc: "",
        cardWidth: "",
        cardHeight: "",
      },
      datasource: {
        type: "dict",
        options: null,
        test: "",
      },
    },
    {
      __config__: {
        label: "邮箱",
        tag: "pm-email",
        tagIcon: "pm-email",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "链接",
        tag: "pm-link",
        tagIcon: "pm-link",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
        linkStr: "",
        linkHref: "",
        linkTarget: "",
        linkStatus: "",
        linkRead: false,
        linkAlign:""
      },
      cascaderJson: "",
      datasource: {
        type: "dict",
        options: null,
        test: "",
      },
    },
    {
      __config__: {
        label: "标题",
        tag: "pm-titles",
        tagIcon: "pm-titles",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
        strColor: "",
        strSize: "",
        strAlign: "",
        content: "",
        strWeight: false,
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "下拉多选",
        tag: "pm-selects",
        tagIcon: "pm-selects",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
      },
      datasource: {
        type: "dict",
        options: null,
        test: "",
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "图标标题",
        tag: "pm-iconTitles",
        tagIcon: "pm-iconTitles",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
        titlesColor: "",
        titlesSize: "",
        iconTitles: "",
        titlesWeight: "",
        iconImg: "",
        strAlign: "",
        titlesWeight: false,
        iconImg: "",
        showIcon: false,
        titlesList: "",
        titlesBgColor: "",
        titlesRadius: "",
        titlesMarginLeft: "",
        titlesMarginTop: "",
        titlesMarginBottom: "",
        titlesMarginRight: "",
        titlesPaddingLeft: "",
        titlesPaddingTop: "",
        titlesPaddingBottom: "",
        titlesPaddingRight: "",
        titlesIcon:'',
        isColumn:false,
        iconText:'',
        titlesColumn:'',
        titlesBorder:false,
        titlesGutter:""
      },
      datasource: {
        type: "dict",
        options: null,
        test: "",
      },
      cascaderJson: "",
    },
    {
      __config__: {
        label: "日历",
        tag: "pm-calendar",
        tagIcon: "pm-calendar",
        defaultValue: { value: undefined, code: "", type: "const", prop: "" },
        span: 24,
        showLabel: false,
        labelWidth: null,
        layout: "colFormItem", //
        required: false,
        regList: [],
      },
      style: {},
      tip: "",
      disabled: false,
      extConfig: {
        // 所有扩展属性都写在这里
      },
      cascaderJson: "",
    },
  ],
};
